<!DOCTYPE HTML>
<html lang="zh-CN">


<head>
    <meta charset="utf-8">
    <meta name="keywords" content="Mathematica——画图3, 我心永恆的小站">
    <meta name="description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <!-- Global site tag (gtag.js) - Google Analytics -->


    <title>Mathematica——画图3 | 我心永恆的小站</title>
    <link rel="icon" type="image/png" href="/favicon.png">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery.min.js"></script>
    <link rel="stylesheet" href="/css/vs2015.css">

<meta name="generator" content="Hexo 4.2.0"><link rel="alternate" href="/atom.xml" title="我心永恆的小站" type="application/atom+xml">
</head>


<body>
    <header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    
                    <img src="/medias/logo.png" class="logo-img" alt="LOGO">
                    
                    <span class="logo-span">我心永恆的小站</span>
                </a>
            </div>
            

<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/" class="waves-effect waves-light">
      
      <i class="fas fa-home" style="zoom: 0.6;"></i>
      
      <span>首页</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/tags" class="waves-effect waves-light">
      
      <i class="fas fa-tags" style="zoom: 0.6;"></i>
      
      <span>标签</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/categories" class="waves-effect waves-light">
      
      <i class="fas fa-bookmark" style="zoom: 0.6;"></i>
      
      <span>分类</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/archives" class="waves-effect waves-light">
      
      <i class="fas fa-archive" style="zoom: 0.6;"></i>
      
      <span>归档</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/about" class="waves-effect waves-light">
      
      <i class="fas fa-user-circle" style="zoom: 0.6;"></i>
      
      <span>关于</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/contact" class="waves-effect waves-light">
      
      <i class="fas fa-comments" style="zoom: 0.6;"></i>
      
      <span>留言板</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/friends" class="waves-effect waves-light">
      
      <i class="fas fa-address-book" style="zoom: 0.6;"></i>
      
      <span>友情链接</span>
    </a>
    
  </li>
  
  <li>
    <a href="#searchModal" class="modal-trigger waves-effect waves-light">
      <i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
    </a>
  </li>
</ul>

<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/medias/logo.png" class="logo-img circle responsive-img">
        
        <div class="logo-name">我心永恆的小站</div>
        <div class="logo-desc">
            
            Never really desperate, only the lost of the soul.
            
        </div>
    </div>

    

    <ul class="menu-list mobile-menu-list">
        
        <li class="m-nav-item">
	  
		<a href="/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-home"></i>
			
			首页
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/tags" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-tags"></i>
			
			标签
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/categories" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-bookmark"></i>
			
			分类
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/archives" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-archive"></i>
			
			归档
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/about" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-user-circle"></i>
			
			关于
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/contact" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-comments"></i>
			
			留言板
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/friends" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-address-book"></i>
			
			友情链接
		</a>
          
        </li>
        
        
    </ul>
</div>

        </div>

        
    </nav>

</header>

    



<div class="bg-cover pd-header post-cover" style="background-image: url('/medias/featureimages/20.jpg')">
    <div class="container" style="right: 0px;left: 0px;">
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="brand">
                    <h1 class="description center-align post-title">Mathematica——画图3</h1>
                </div>
            </div>
        </div>
    </div>
</div>




<main class="post-container content">

    
    <link rel="stylesheet" href="/libs/tocbot/tocbot.css">
<style>
    #articleContent h1::before,
    #articleContent h2::before,
    #articleContent h3::before,
    #articleContent h4::before,
    #articleContent h5::before,
    #articleContent h6::before {
        display: block;
        content: " ";
        height: 100px;
        margin-top: -100px;
        visibility: hidden;
    }

    #articleContent :focus {
        outline: none;
    }

    .toc-fixed {
        position: fixed;
        top: 64px;
    }

    .toc-widget {
        width: 345px;
        padding-left: 20px;
    }

    .toc-widget .toc-title {
        margin: 35px 0 15px 0;
        padding-left: 17px;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    .toc-widget ol {
        padding: 0;
        list-style: none;
    }

    #toc-content {
        height: calc(100vh - 250px);
        overflow: auto;
    }

    #toc-content ol {
        padding-left: 10px;
    }

    #toc-content ol li {
        padding-left: 10px;
    }

    #toc-content .toc-link:hover {
        color: #42b983;
        font-weight: 700;
        text-decoration: underline;
    }

    #toc-content .toc-link::before {
        background-color: transparent;
        max-height: 25px;
    }

    #toc-content .is-active-link {
        color: #42b983;
    }

    #toc-content .is-active-link::before {
        background-color: #42b983;
    }

    #floating-toc-btn {
        position: fixed;
        right: 15px;
        bottom: 76px;
        padding-top: 15px;
        margin-bottom: 0;
        z-index: 998;
    }

    #floating-toc-btn .btn-floating {
        width: 48px;
        height: 48px;
    }

    #floating-toc-btn .btn-floating i {
        line-height: 48px;
        font-size: 1.4rem;
    }
</style>
<div class="row">
    <div id="main-content" class="col s12 m12 l9">
        <!-- 文章内容详情 -->
<div id="artDetail">
    <div class="card">
        <div class="card-content article-info">
            <div class="row tag-cate">
                <div class="col s7">
                    
                    <div class="article-tag">
                        
                            <a href="/tags/%E6%95%99%E7%A8%8B/">
                                <span class="chip bg-color">教程</span>
                            </a>
                        
                            <a href="/tags/Mathematica/">
                                <span class="chip bg-color">Mathematica</span>
                            </a>
                        
                    </div>
                    
                </div>
                <div class="col s5 right-align">
                    
                </div>
            </div>

            <div class="post-info">
                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-minus fa-fw"></i>发布日期:&nbsp;&nbsp;
                    2020-03-13
                </div>
                

                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-check fa-fw"></i>更新日期:&nbsp;&nbsp;
                    2020-03-25
                </div>
                

                
                <div class="info-break-policy">
                    <i class="far fa-file-word fa-fw"></i>文章字数:&nbsp;&nbsp;
                    2.2k
                </div>
                

                
                <div class="info-break-policy">
                    <i class="far fa-clock fa-fw"></i>阅读时长:&nbsp;&nbsp;
                    9 分
                </div>
                

                
                    <div id="busuanzi_container_page_pv" class="info-break-policy">
                        <i class="far fa-eye fa-fw"></i>阅读次数:&nbsp;&nbsp;
                        <span id="busuanzi_value_page_pv"></span>
                    </div>
				
            </div>

        </div>
        <hr class="clearfix">
        <div class="card-content article-card-content">
            <div id="articleContent">
                <h2 id="在一个网格中显示多个图形"><a href="#在一个网格中显示多个图形" class="headerlink" title="在一个网格中显示多个图形"></a><center>在一个网格中显示多个图形</center></h2><h3 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h3><p>为了便于比较，你可能需要显示几个相关的图形在一个网格中。</p>
<h3 id="解决方案"><a href="#解决方案" class="headerlink" title="解决方案"></a>解决方案</h3><p>使用<code>GraphicsGrid</code>在mathematica6或GraphicsArray在较早的版本。<br>您可以使用表来将几个图形分组在一起，但这使你几乎无法控制图像的布局。<br>GraphicsGrid可以控制网格、框架、间距、分隔符和其他选项的大小。<br>网格的维是从作为第一个参数传递的图形列表的维中推断出来的。<br>你可以用<code>Partition</code>方便地将线性列表转换为所需的二维。<br>说了这么多似乎很抽象，我们举一个例子。</p>
<pre><code>With[{a = 2},(*With函数，如果不懂，可以查帮助文档*)
 GraphicsGrid[(*GraphicsGrid函数，用来把图形组成一个大网格的*)
  Partition[(*划分的函数，查看帮助文档*)
   Table[
    Plot[0.5 Sin@(2 x), {x, 0, 2 Pi},(*plot的函数以及变量的范围*)
     Mesh -&gt; m, ImageSize -&gt; 300, Frame -&gt; True, FrameLabel -&gt; &quot;网格是&quot; &lt;&gt; ToString@m],(*plot的样式*)
    {m, {None, Automatic, All, Full, 16, 50}}],(*Table的选项*)
   a],(*Partition的选项*)
  Frame -&gt; All](*GraphicsGrid的选项*)
 ]</code></pre><p><img src="3tu1.svg" alt=""></p>
<h3 id="讨论"><a href="#讨论" class="headerlink" title="讨论"></a>讨论</h3><p>除了<code>GraphicsGrid</code>之外，Mathematica还提供了<code>GraphicsRow</code>和<code>GraphicsColumn</code>.<br><code>GraphicsGrid</code>提供横向布局，<code>GraphicsRow</code>提供纵向布局<br>尽管他们这些布局都比较简单但是不要小看他们，用这些简单的布局函数可以组建很复杂的图像。<br>在这里，我将演示如何使用<code>GraphicsRow</code>在另一个<code>GraphicsRow</code>旁边显示一个<code>GraphicsColumn</code>。<br><code>Frame</code>可以围绕行或列绘制(<code>Frame-&gt;True</code>)或另外划分的所有元素(<code>Frame-&gt;All</code>)。<br>看下面这个例子</p>
<pre><code>With[
 {p1 = Table[
    Graphics[{EdgeForm[Black], FaceForm[LightYellow],
      Polygon[Table[
        {Cos[2 Pi k/p], Sin[2 Pi k/p]}, {k, p}]]},
     ImageSize -&gt; 350],
    {p, 4, 8, 2}]},
 GraphicsRow[{
   GraphicsColumn[p1, Frame -&gt; True],
   GraphicsRow[p1, Frame -&gt; True]},
  Frame -&gt; All, ImageSize -&gt; 450]]</code></pre><p><img src="3tu2.svg" alt=""></p>
<hr>
<h2 id="给图像加图例"><a href="#给图像加图例" class="headerlink" title="给图像加图例"></a><center>给图像加图例</center></h2><h3 id="问题-1"><a href="#问题-1" class="headerlink" title="问题"></a>问题</h3><p>你现在一个图中有几个曲线，你希望使用图例来标识这几个曲线。</p>
<h3 id="解决方案-1"><a href="#解决方案-1" class="headerlink" title="解决方案"></a>解决方案</h3><p>使用这个函数包 <code>PlotLegends package</code><br>这个包里面有这几个选项<br><code>PlotLegend</code>, <code>LegendPosition</code>, 和<code>LegendSize options</code><br>具体用法，看下面这个例子。</p>
<pre><code>Needs[&quot;PlotLegends`&quot;];
Plot[{Sin@x, Sin@(2 x)}, {x, 0, 2 Pi},
PlotStyle -&gt; {Directive[Black, Dotted], Directive[Black, Dashed]},
PlotLegend -&gt; {&quot;Sin x&quot;, &quot;Sin 2x&quot;},
LegendPosition -&gt; {1, 0.1}, LegendSize -&gt; 0.75]</code></pre><p><img src="3tu3.svg" alt=""></p>
<p>调用包首先需要用<code>Needs</code>函数，然后才能操作。<br><code>LegendsPosition</code>是指图例的 左下角的位置</p>
<h3 id="讨论-1"><a href="#讨论-1" class="headerlink" title="讨论"></a>讨论</h3><p>有多种方式进一步调整<code>Legends</code>的外观。你<br>1.<code>LegendShado</code>(图例阴影)你可以关闭或控制投影的偏移;<br>2.使用 <code>LegendSpacing</code>, <code>LegendTextSpace</code>, <code>LegendLabelSpace</code>,和 <code>LegendBorderSpace</code>控制各种元素的间距;<br>3.使用<code>LegendTextDirection</code>, <code>LegendTextOffset</code>, <code>LegendSpacing</code>, 和 <code>LegendTextSpace</code>控制标签<br>4.用<code>LegendLabel</code> 和 <code>LegendLabelSpace</code>给图例一个标签<br><strong>注意 <code>LegendTextSpace</code>的效果，这有点违反直觉，它表示文本空间与键盒大小的比例，因此较大的数字实际上缩小了图例。</strong></p>
<p><code>LegendSpacing</code>控制每个键盒大小为1的范围内的空间。<br>扯了这么多，太抽象像了，看例子。然后再回过来看这些。</p>
<h4 id="LegendShadow-阴影"><a href="#LegendShadow-阴影" class="headerlink" title="LegendShadow (阴影)"></a>LegendShadow (阴影)</h4><p>step1<br>我先规定样式,为了方便后面操作</p>
<pre><code>Needs[&quot;PlotLegends`&quot;];
p = Sequence[
   PlotStyle -&gt; {Directive[Black, Dotted], Directive[Black, Dashed]}, 
   PlotLegend -&gt; {&quot;Sin x&quot;, &quot;cos 2x&quot;}, LegendPosition -&gt; {1, 0.1}, 
   LegendSize -&gt; 0.7, ImageSize -&gt; 350];</code></pre><p>第一个例子：</p>
<pre><code>Plot[{Sin@x, Cos@x}, {x, 0, 2 Pi},
 Evaluate[p], LegendShadow -&gt; None, LegendSpacing -&gt; 1/2, LegendTextSpace -&gt; 10]</code></pre><p><img src="3tu4.svg" alt=""><br><strong>说明</strong> </p>
<p><code>Evaluate[p]</code>的作用是让p这个样式生效。<br><code>LegendShadow -&gt; None</code>表示不加阴影</p>
<h4 id="LegendSpacing"><a href="#LegendSpacing" class="headerlink" title="LegendSpacing"></a>LegendSpacing</h4><p>我们看下面这个例子</p>
<pre><code>GraphicsRow[{Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, 
   PlotLegend -&gt; {&quot;sine&quot;, &quot;cosine&quot;}, LegendSpacing -&gt; 0],
  Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, 
   PlotLegend -&gt; {&quot;sine&quot;, &quot;cosine&quot;}, LegendSpacing -&gt; 1]}, 
 ImageSize -&gt; 700]</code></pre><p><img src="3tu5.svg" alt=""></p>
<h4 id="LegendTextSpace"><a href="#LegendTextSpace" class="headerlink" title="LegendTextSpace"></a>LegendTextSpace</h4><p>对比下面这两个图，可以看出差别。</p>
<pre><code>Row[{Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, Evaluate[p], 
   PlotLegend -&gt; {&quot;sine&quot;, &quot;cosine&quot;}, LegendTextSpace -&gt; 10],
  Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, 
   PlotLegend -&gt; {&quot;sine&quot;, &quot;cosine&quot;}, Evaluate[p], 
   LegendTextSpace -&gt; 5]}]</code></pre><p><img src="3tu6.svg" alt=""><br>有时你想要创建一个更自定义的图例。在这种情况下，考虑<code>Legend</code>和<code>ShowLegend</code>。</p>
<hr>
<h2 id="自定义2D图形"><a href="#自定义2D图形" class="headerlink" title="自定义2D图形"></a><center>自定义2D图形</center></h2><h3 id="问题-2"><a href="#问题-2" class="headerlink" title="问题"></a>问题</h3><p>你希望创建包含线条、正方形、圆形或者其他几何对象的图形</p>
<h3 id="解决方案-2"><a href="#解决方案-2" class="headerlink" title="解决方案"></a>解决方案</h3><p>Mathematica有一个通用的图形函数集合：<br>点<code>Point</code><br>线<code>Line</code><br>矩形<code>Rectangle</code>  圆<code>Circle</code> 圆盘 <code>Disk</code>,<br>多边形<code>Polygon</code><br>箭头 <code>Arrow</code>, 栅格<code>Raster</code><br>文本<code>Text</code><br>我们使用这些基本元素创造一个很复杂的图形，雪人。<br><img src="3tu7.png" alt=""><br>代码太长了，这里省略</p>
<h3 id="讨论-2"><a href="#讨论-2" class="headerlink" title="讨论"></a>讨论</h3><p>充分利用图形原语的关键之一是学习如何将它们与图形指令结合起来。<br>有些指令非常具体，而另一些则非常笼统。<br>例如，<code>Arrowheads</code>只适用于<code>Arrow</code>，而<code>Red</code>和<code>Opacity</code>适用于所有基本元素。<br><strong>一个指令将适用于它后面的所有对象，受限于在列表中嵌套对象所创建的作用域。</strong><br>例如，在下面的图形中，<code>Red</code>适用于<code>Disk</code>和<code>Rectangle</code>，但不适用于<code>Line</code>(线条)。<br>因为<code>Line</code>(线条)在其自己的范围内具有特定的颜色和粗细。</p>
<pre><code>Graphics[{Red, Disk[{-2, -2}, 0.5], 
  Rectangle[], {Thickness[0.02], Black, 
   Line[{{-1.65, -1.65}, {0, 0}}]}}, ImageSize -&gt; Small]</code></pre><p><img src="3tu8.svg" alt=""></p>
<h4 id="Color-颜色"><a href="#Color-颜色" class="headerlink" title="Color(颜色)"></a>Color(颜色)</h4><p><code>Color</code>指令可以使用指定的颜色:<br>红色、绿色、蓝色、黑色、白色、灰色等<br>你还可以使用<code>RGBColor</code> 或 <code>Hue</code>、 <code>CMYKColor</code> 、 <code>GrayLevel</code> 和 <code>Blend</code> 来合成颜色。<br>在Mathematica 6或更高版本中，这些指令除了定义颜色或灰色设置的值外，还可以使用不透明度值。<br><code>Blend</code>(混合)也是mathematica6的新功能。</p>
<pre><code>Graphics[Table[{Hue@x,Rectangle[{x,1},{x+0.1,2}]},{x,0,0.99,0.1}]]</code></pre><p><img src="3tu9.svg" alt=""></p>
<pre><code>Graphics[Table[{Hue@x, Rectangle[{x, 1}, {x + 0.05, 2}],
   Blend[{Hue[x], Hue[x + 0.05]}, 0.25], 
   Rectangle[{x + 0.05, 1}, {x + 0.1, 2}]}, {x, 0, 0.99, 0.1}]]</code></pre><p><img src="3tu10.svg" alt=""></p>
<h4 id="Thickness-粗细"><a href="#Thickness-粗细" class="headerlink" title="Thickness(粗细)"></a>Thickness(粗细)</h4><p><code>Thickness[r]</code>是相对于图形的总宽度指定的，因此，<strong>刻度是随尺寸变化而变化的</strong>。<br><code>AbsoluteThickness[d]</code>的单位是打印机点(1/72英寸)，不缩放。<br> <code>Thick</code> 和 <code>Thin</code> 是<code>AbsoluteThickness</code>的预定义版本(分别为0.25和2)。<br> <code>Thickness</code>指令适用于包含线条(如线条、多边形、箭头等)的元素。</p>
<pre><code>(*注意给线条加粗，需要把命令放到Line的前面*)
Graphics[{
  {Line[{{0, -1}, {0, 1}}]},
  {Thin, Line[{{0.5, -1}, {0.5, 1}}]},
  {Thick, Line[{{1, -1}, {1, 1}}]},
  {AbsoluteThickness@3, Line[{{1.5, -1}, {1.5, 1}}]}
  }]</code></pre><p><img src="3tu11.svg" alt=""></p>
<hr>
<h2 id="用文本注释图形"><a href="#用文本注释图形" class="headerlink" title="用文本注释图形"></a><center>用文本注释图形</center></h2><h3 id="问题-3"><a href="#问题-3" class="headerlink" title="问题"></a>问题</h3><p>你想把文本加到你的图像上</p>
<h3 id="解决方案-3"><a href="#解决方案-3" class="headerlink" title="解决方案"></a>解决方案</h3><p>使用带样式的文本指定字体族、字体替换、字体大小、字体权重、字体倾斜、字体跟踪、字体颜色和背景 </p>
<pre><code>Graphics[{
  Text[Style[&quot;大小为12的默认字体&quot;, FontSize -&gt; 12], {0, 0}], 
  Text[Style[&quot;大小为16的斜体字体&quot;, FontSize -&gt; 16, 
    FontSlant -&gt; Italic], {0, -.2}], 
  Text[Style[&quot;大小为14的粗体字体&quot;, FontSize -&gt; 14, 
    FontWeight -&gt; Bold], {0, -.4}], 
  Text[Style[&quot;大小为14的Arial字体 &quot;, FontSize -&gt; 14, 
    FontFamily -&gt; &quot;Arial&quot;], {0, -.6}], 
  Text[Style[&quot;大小为14的Aria的缩小l字体&quot;, FontSize -&gt; 14, 
    FontFamily -&gt; &quot;Arial&quot;, FontTracking -&gt; &quot;Narrow&quot;], {0, -.8}], 
  Text[Style[&quot;大小为14的黑底白字&quot;, FontSize -&gt; 14, FontWeight -&gt; Bold, 
    FontColor -&gt; White, Background -&gt; Black], {0, -1}]}]</code></pre><p><img src="3tu12.svg" alt=""></p>
<h3 id="讨论-3"><a href="#讨论-3" class="headerlink" title="讨论"></a>讨论</h3><p>下面这个图中我将演示各种绘图选项，它们包含向整个图形、框架和轴添加标签的选项。</p>
<pre><code>op = {PlotLabel -&gt; 
    Style[0.5 Sin [2 x], FontSize -&gt; 18, FontFamily -&gt; &quot;Arial&quot;],
   AxesLabel -&gt; {&quot;x&quot;, &quot;y&quot;},
   LabelStyle -&gt; 
    Directive[Bold, FontFamily -&gt; &quot;Arial&quot;, FontSize -&gt; 13],
   Frame -&gt; True, FrameLabel -&gt; Style[&quot;正弦曲线&quot;, FontSlant -&gt; Italic],
   ImageSize -&gt; 350};
Plot[0.5 Sin[2 x], {x, 0, 2 Pi}, Evaluate@op]</code></pre><p><img src="3tu13.svg" alt=""></p>
<hr>
<h2 id="创建自定义的箭头"><a href="#创建自定义的箭头" class="headerlink" title="创建自定义的箭头"></a><center>创建自定义的箭头</center></h2><h3 id="问题-4"><a href="#问题-4" class="headerlink" title="问题"></a>问题</h3><p>你希望创建带有自定义箭头、尾部和连接线的箭头，以便在图形注释中使用</p>
<h3 id="解决方案-4"><a href="#解决方案-4" class="headerlink" title="解决方案"></a>解决方案</h3><pre><code>With[{h = Graphics[{Disk[{0, 0}, 0.75]}],
  t = Graphics[
    {Line[{{-0.5, 0}, {0.5, 0}}],
     Line[{{0, -0.6}, {0, 0.6}}],
     Line[{{0.2, -0.6}, {0.2, 0.6}}]}]},
 Graphics[{Arrowheads[{{0.05, 1, h}, {0.1, 0, t}}],
   Arrow[{{0, 0}, {0.25, 0.25}}]}, ImageSize -&gt; 200]]</code></pre><p><img src="3tu14.svg" alt=""></p>
<h3 id="讨论-4"><a href="#讨论-4" class="headerlink" title="讨论"></a>讨论</h3><p>箭头有很多功能。<br>你可以很容易地创建双端箭头和沿某个方向具有多个箭头的箭头。</p>
<pre><code>Graphics[
 {Arrowheads[{-0.05, 0.05}], Arrow[{{0, 0}, {1, 0}}],
  Arrowheads[{0, 0.05, 0.05, 0.05, 0.05}], 
  Arrow[{{0, -0.2}, {1, -0.2}}]}, ImageSize -&gt; 350]</code></pre><p><img src="3tu15.svg" alt=""><br>你也可以考虑使用箭头来标记箭头，但Mathematica没有专门处理这种“箭头”，所以你可能会得到不希望的效果。</p>
<pre><code>Graphics[
 {Arrowheads
   [{0, {Automatic, 0.5, 
     Graphics[{Text[
        Style[&quot;Label&quot;, FontSize -&gt; 14, FontWeight -&gt; Bold]]}]}, 0.1}],
  Arrow[{{0, 0}, {-0.25, 0.25}}]}]</code></pre><p><img src="3tu16.svg" alt=""><br>一个更好的选择是使用文本或Inset的旋转，或者使用GraphPlot或相关函数来定位文本<br>Inset比手动定位文本的优点是:如果你不介意标签不平行于箭头，你可以自动定心.</p>
<pre><code>Graphics[{Arrowheads[{0.1}], Arrow[{{0, 0}, {-0.25, 0.25}}], 
  Rotate[Text[
    Style[&quot;Label&quot;, FontSize -&gt; 14, FontWeight -&gt; Bold], {-0.14, 
     0.11}], -Pi/4]}, ImageSize -&gt; 350]</code></pre><p><img src="3tu17.svg" alt=""></p>
<pre><code>Graphics[{Arrowheads[{0.1}], Arrow[{{0, 0}, {-0.25, 0.25}}], 
  Inset[Text[Style[&quot;Label&quot;, FontSize -&gt; 14, FontWeight -&gt; Bold]]]}, 
 ImageSize -&gt; Small]</code></pre><p><img src="3tu18.svg" alt=""></p>
<p><font size=6> 2D图部分完！ </font ></p>

            </div>
            <hr/>

            

    <div class="reprint" id="reprint-statement">
        
            <div class="reprint__author">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-user">
                        文章作者:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://wxyhgk.gitee.io" rel="external nofollow noreferrer">我心永恆</a>
                </span>
            </div>
            <div class="reprint__type">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-link">
                        文章链接:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://wxyhgk.gitee.io/mma-base2Dplot3/">https://wxyhgk.gitee.io/mma-base2Dplot3/</a>
                </span>
            </div>
            <div class="reprint__notice">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-copyright">
                        版权声明:
                    </i>
                </span>
                <span class="reprint-info">
                    本博客所有文章除特別声明外，均采用
                    <a href="https://creativecommons.org/licenses/by/4.0/deed.zh" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>
                    许可协议。转载请注明来源
                    <a href="https://wxyhgk.gitee.io" target="_blank">我心永恆</a>
                    !
                </span>
            </div>
        
    </div>

    <script async defer>
      document.addEventListener("copy", function (e) {
        let toastHTML = '<span>复制成功，请遵循本文的转载规则</span><button class="btn-flat toast-action" onclick="navToReprintStatement()" style="font-size: smaller">查看</a>';
        M.toast({html: toastHTML})
      });

      function navToReprintStatement() {
        $("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800);
      }
    </script>



            <div class="tag_share" style="display: block;">
                <div class="post-meta__tag-list" style="display: inline-block;">
                    
                        <div class="article-tag">
                            
                                <a href="/tags/%E6%95%99%E7%A8%8B/">
                                    <span class="chip bg-color">教程</span>
                                </a>
                            
                                <a href="/tags/Mathematica/">
                                    <span class="chip bg-color">Mathematica</span>
                                </a>
                            
                        </div>
                    
                </div>
                <div class="post_share" style="zoom: 80%; width: fit-content; display: inline-block; float: right; margin: -0.15rem 0;">
                    <link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">

<div id="article-share">
    
    
    <div class="social-share" data-sites="qq,qzone,wechat,weibo,douban" data-wechat-qrcode-helper="<p>微信扫一扫即可分享！</p>"></div>
    <script src="/libs/share/js/social-share.min.js"></script>
    

    

</div>

                </div>
            </div>
            
                <style>
    #reward {
        margin: 40px 0;
        text-align: center;
    }

    #reward .reward-link {
        font-size: 1.4rem;
        line-height: 38px;
    }

    #reward .btn-floating:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    #rewardModal {
        width: 320px;
        height: 350px;
    }

    #rewardModal .reward-title {
        margin: 15px auto;
        padding-bottom: 5px;
    }

    #rewardModal .modal-content {
        padding: 10px;
    }

    #rewardModal .close {
        position: absolute;
        right: 15px;
        top: 15px;
        color: rgba(0, 0, 0, 0.5);
        font-size: 1.3rem;
        line-height: 20px;
        cursor: pointer;
    }

    #rewardModal .close:hover {
        color: #ef5350;
        transform: scale(1.3);
        -moz-transform:scale(1.3);
        -webkit-transform:scale(1.3);
        -o-transform:scale(1.3);
    }

    #rewardModal .reward-tabs {
        margin: 0 auto;
        width: 210px;
    }

    .reward-tabs .tabs {
        height: 38px;
        margin: 10px auto;
        padding-left: 0;
    }

    .reward-content ul {
        padding-left: 0 !important;
    }

    .reward-tabs .tabs .tab {
        height: 38px;
        line-height: 38px;
    }

    .reward-tabs .tab a {
        color: #fff;
        background-color: #ccc;
    }

    .reward-tabs .tab a:hover {
        background-color: #ccc;
        color: #fff;
    }

    .reward-tabs .wechat-tab .active {
        color: #fff !important;
        background-color: #22AB38 !important;
    }

    .reward-tabs .alipay-tab .active {
        color: #fff !important;
        background-color: #019FE8 !important;
    }

    .reward-tabs .reward-img {
        width: 210px;
        height: 210px;
    }
</style>

<div id="reward">
    <a href="#rewardModal" class="reward-link modal-trigger btn-floating btn-medium waves-effect waves-light red">赏</a>

    <!-- Modal Structure -->
    <div id="rewardModal" class="modal">
        <div class="modal-content">
            <a class="close modal-close"><i class="fas fa-times"></i></a>
            <h4 class="reward-title">你的赏识是我前进的动力</h4>
            <div class="reward-content">
                <div class="reward-tabs">
                    <ul class="tabs row">
                        <li class="tab col s6 alipay-tab waves-effect waves-light"><a href="#alipay">支付宝</a></li>
                        <li class="tab col s6 wechat-tab waves-effect waves-light"><a href="#wechat">微 信</a></li>
                    </ul>
                    <div id="alipay">
                        <img src="/medias/reward/alipay.jpg" class="reward-img" alt="支付宝打赏二维码">
                    </div>
                    <div id="wechat">
                        <img src="/medias/reward/wechat.png" class="reward-img" alt="微信打赏二维码">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        $('.tabs').tabs();
    });
</script>
            
        </div>
    </div>

    

    

    

    

    
        <style>
    .valine-card {
        margin: 1.5rem auto;
    }

    .valine-card .card-content {
        padding: 20px 20px 5px 20px;
    }

    #vcomments textarea {
        box-sizing: border-box;
        background: url("/medias/comment_bg.png") 100% 100% no-repeat;
    }

    #vcomments p {
        margin: 2px 2px 10px;
        font-size: 1.05rem;
        line-height: 1.78rem;
    }

    #vcomments blockquote p {
        text-indent: 0.2rem;
    }

    #vcomments a {
        padding: 0 2px;
        color: #4cbf30;
        font-weight: 500;
        text-decoration: none;
    }

    #vcomments img {
        max-width: 100%;
        height: auto;
        cursor: pointer;
    }

    #vcomments ol li {
        list-style-type: decimal;
    }

    #vcomments ol,
    ul {
        display: block;
        padding-left: 2em;
        word-spacing: 0.05rem;
    }

    #vcomments ul li,
    ol li {
        display: list-item;
        line-height: 1.8rem;
        font-size: 1rem;
    }

    #vcomments ul li {
        list-style-type: disc;
    }

    #vcomments ul ul li {
        list-style-type: circle;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    #vcomments table, th, td {
        border: 0;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments h1 {
        font-size: 1.85rem;
        font-weight: bold;
        line-height: 2.2rem;
    }

    #vcomments h2 {
        font-size: 1.65rem;
        font-weight: bold;
        line-height: 1.9rem;
    }

    #vcomments h3 {
        font-size: 1.45rem;
        font-weight: bold;
        line-height: 1.7rem;
    }

    #vcomments h4 {
        font-size: 1.25rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    #vcomments h5 {
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1.4rem;
    }

    #vcomments h6 {
        font-size: 1rem;
        line-height: 1.3rem;
    }

    #vcomments p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    #vcomments hr {
        margin: 12px 0;
        border: 0;
        border-top: 1px solid #ccc;
    }

    #vcomments blockquote {
        margin: 15px 0;
        border-left: 5px solid #42b983;
        padding: 1rem 0.8rem 0.3rem 0.8rem;
        color: #666;
        background-color: rgba(66, 185, 131, .1);
    }

    #vcomments pre {
        font-family: monospace, monospace;
        padding: 1.2em;
        margin: .5em 0;
        background: #272822;
        overflow: auto;
        border-radius: 0.3em;
        tab-size: 4;
    }

    #vcomments code {
        font-family: monospace, monospace;
        padding: 1px 3px;
        font-size: 0.92rem;
        color: #e96900;
        background-color: #f8f8f8;
        border-radius: 2px;
    }

    #vcomments pre code {
        font-family: monospace, monospace;
        padding: 0;
        color: #e8eaf6;
        background-color: #272822;
    }

    #vcomments pre[class*="language-"] {
        padding: 1.2em;
        margin: .5em 0;
    }

    #vcomments code[class*="language-"],
    pre[class*="language-"] {
        color: #e8eaf6;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }

    #vcomments b,
    strong {
        font-weight: bold;
    }

    #vcomments dfn {
        font-style: italic;
    }

    #vcomments small {
        font-size: 85%;
    }

    #vcomments cite {
        font-style: normal;
    }

    #vcomments mark {
        background-color: #fcf8e3;
        padding: .2em;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }
</style>

<div class="card valine-card" data-aos="fade-up">
    <div class="comment_headling" style="font-size: 20px; font-weight: 700; position: relative; left: 20px; top: 15px; padding-bottom: 5px;">
        <i class="fas fa-comments fa-fw" aria-hidden="true"></i>
        <span>评论</span>
    </div>
    <div id="vcomments" class="card-content" style="display: grid">
    </div>
</div>

<script src="/libs/valine/av-min.js"></script>
<script src="/libs/valine/Valine.min.js"></script>
<script>
    new Valine({
        el: '#vcomments',
        appId: '8i5IVUkUwJXeA2lmcXHA1oya-gzGzoHsz',
        appKey: '8VLP3WBVp7k20K81z9qUxg1i',
        notify: 'false' === 'true',
        verify: 'false' === 'true',
        visitor: 'true' === 'true',
        avatar: 'mm',
        pageSize: '10',
        lang: 'zh-cn',
        placeholder: 'just go go'
    });
</script>

    

    

<article id="prenext-posts" class="prev-next articles">
    <div class="row article-row">
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge left-badge text-color">
                <i class="fas fa-chevron-left"></i>&nbsp;上一篇</div>
            <div class="card">
                <a href="/mma-rulepatten1/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/14.jpg" class="responsive-img" alt="Mathematica——模式，规则1">
                        
                        <span class="card-title">Mathematica——模式，规则1</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            

p {font-size:18px;}




 写在前面的话本次的mma教程，有以下改进：1.代码的输入和结果分开 2.提供了在线运行，不过速度很慢。3.其他小改动



1.1介绍



 在这一章中，我们将 在Mathematic
                        
                    </div>
                    <div class="publish-info">
                        <span class="publish-date">
                            <i class="far fa-clock fa-fw icon-date"></i>2020-03-14
                        </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            我心永恆
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/%E6%95%99%E7%A8%8B/">
                        <span class="chip bg-color">教程</span>
                    </a>
                    
                    <a href="/tags/Mathematica/">
                        <span class="chip bg-color">Mathematica</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge right-badge text-color">
                下一篇&nbsp;<i class="fas fa-chevron-right"></i>
            </div>
            <div class="card">
                <a href="/mma-base2Dplot2/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/21.jpg" class="responsive-img" alt="Mathematica——画图2">
                        
                        <span class="card-title">Mathematica——画图2</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            极坐标绘图问题你想去画一个极坐标图
解决方案使用PolarPlot，它以极坐标系中的角度为半径，在 (x) 轴上以0为轴，在 (y) 轴上以(\dfrac{\pi}{2})为轴画图。
GraphicsGrid[{
{PolarPlot[1,
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-03-13
                            </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            我心永恆
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/%E6%95%99%E7%A8%8B/">
                        <span class="chip bg-color">教程</span>
                    </a>
                    
                    <a href="/tags/Mathematica/">
                        <span class="chip bg-color">Mathematica</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
    </div>
</article>

</div>



<!-- 代码块功能依赖 -->
<script type="text/javascript" src="/libs/codeBlock/codeBlockFuction.js"></script>

<!-- 代码语言 -->

<script type="text/javascript" src="/libs/codeBlock/codeLang.js"></script>


<!-- 代码块复制 -->

<script type="text/javascript" src="/libs/codeBlock/codeCopy.js"></script>


<!-- 代码块收缩 -->


<!-- 代码块折行 -->


    </div>
    <div id="toc-aside" class="expanded col l3 hide-on-med-and-down">
        <div class="toc-widget">
            <div class="toc-title"><i class="far fa-list-alt"></i>&nbsp;&nbsp;目录</div>
            <div id="toc-content"></div>
        </div>
    </div>
</div>

<!-- TOC 悬浮按钮. -->

<div id="floating-toc-btn" class="hide-on-med-and-down">
    <a class="btn-floating btn-large bg-color">
        <i class="fas fa-list-ul"></i>
    </a>
</div>


<script src="/libs/tocbot/tocbot.min.js"></script>
<script>
    $(function () {
        tocbot.init({
            tocSelector: '#toc-content',
            contentSelector: '#articleContent',
            headingsOffset: -($(window).height() * 0.4 - 45),
            collapseDepth: Number('2'),
            headingSelector: 'h2, h3, h4, h5, h6'
        });

        // modify the toc link href to support Chinese.
        let i = 0;
        let tocHeading = 'toc-heading-';
        $('#toc-content a').each(function () {
            $(this).attr('href', '#' + tocHeading + (++i));
        });

        // modify the heading title id to support Chinese.
        i = 0;
        $('#articleContent').children('h2, h3, h4, h5, h6').each(function () {
            $(this).attr('id', tocHeading + (++i));
        });

        // Set scroll toc fixed.
        let tocHeight = parseInt($(window).height() * 0.4 - 64);
        let $tocWidget = $('.toc-widget');
        $(window).scroll(function () {
            let scroll = $(window).scrollTop();
            /* add post toc fixed. */
            if (scroll > tocHeight) {
                $tocWidget.addClass('toc-fixed');
            } else {
                $tocWidget.removeClass('toc-fixed');
            }
        });

        
        /* 修复文章卡片 div 的宽度. */
        let fixPostCardWidth = function (srcId, targetId) {
            let srcDiv = $('#' + srcId);
            if (srcDiv.length === 0) {
                return;
            }

            let w = srcDiv.width();
            if (w >= 450) {
                w = w + 21;
            } else if (w >= 350 && w < 450) {
                w = w + 18;
            } else if (w >= 300 && w < 350) {
                w = w + 16;
            } else {
                w = w + 14;
            }
            $('#' + targetId).width(w);
        };

        // 切换TOC目录展开收缩的相关操作.
        const expandedClass = 'expanded';
        let $tocAside = $('#toc-aside');
        let $mainContent = $('#main-content');
        $('#floating-toc-btn .btn-floating').click(function () {
            if ($tocAside.hasClass(expandedClass)) {
                $tocAside.removeClass(expandedClass).hide();
                $mainContent.removeClass('l9');
            } else {
                $tocAside.addClass(expandedClass).show();
                $mainContent.addClass('l9');
            }
            fixPostCardWidth('artDetail', 'prenext-posts');
        });
        
    });
</script>

    

</main>


<script src="https://cdn.bootcss.com/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script>
    MathJax.Hub.Config({
        tex2jax: {inlineMath: [['$', '$'], ['\(', '\)']]}
    });
</script>


    <footer class="page-footer bg-color">
    
    <div class="container row center-align" style="margin-bottom: 0px !important;">
        <div class="col s12 m8 l8 copy-right">
            Copyright&nbsp;&copy;
            <span id="year">2019</span>
            <a href="https://wxyhgk.gitee.io" target="_blank">我心永恆</a>
            |&nbsp;Powered by&nbsp;<a href="https://hexo.io/" target="_blank">Hexo</a>
            |&nbsp;Theme&nbsp;<a href="https://github.com/blinkfox/hexo-theme-matery" target="_blank">Matery</a>
            <br>
            
            &nbsp;<i class="fas fa-chart-area"></i>&nbsp;站点总字数:&nbsp;<span
                class="white-color">43.3k</span>&nbsp;字
            
            
            
            
            
            
            <span id="busuanzi_container_site_pv">
                |&nbsp;<i class="far fa-eye"></i>&nbsp;总访问量:&nbsp;<span id="busuanzi_value_site_pv"
                    class="white-color"></span>&nbsp;次
            </span>
            
            
            <span id="busuanzi_container_site_uv">
                |&nbsp;<i class="fas fa-users"></i>&nbsp;总访问人数:&nbsp;<span id="busuanzi_value_site_uv"
                    class="white-color"></span>&nbsp;人
            </span>
            
            <br>
            
            <br>
            
        </div>
        <div class="col s12 m4 l4 social-link social-statis">


    <a href="mailto:3123624718@qq.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
        <i class="fas fa-envelope-open"></i>
    </a>







    <a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=3123624718" class="tooltipped" target="_blank" data-tooltip="QQ联系我: 3123624718" data-position="top" data-delay="50">
        <i class="fab fa-qq"></i>
    </a>







</div>
    </div>
    <script src="/js/highlight.pack.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
</footer>

<div class="progress-bar"></div>


    <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fas fa-search"></i>&nbsp;&nbsp;搜索</span>
            <input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script src="/js/search.js"></script>
<script type="text/javascript">
$(function () {
    searchFunc("/" + "search.xml", 'searchInput', 'searchResult');
});
</script>
    <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fas fa-arrow-up"></i>
    </a>
</div>


    <script src="/libs/materialize/materialize.min.js"></script>
    <script src="/libs/masonry/masonry.pkgd.min.js"></script>
    <script src="/libs/aos/aos.js"></script>
    <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
    <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
    <script src="/js/matery.js"></script>

    <!-- Baidu Analytics -->

    <!-- Baidu Push -->

<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        } else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

    
    <script src="/libs/others/clicklove.js" async="async"></script>
    
    
    <script async src="/libs/others/busuanzi.pure.mini.js"></script>
    

    

    

    
    <script type="text/javascript" color="0,0,255"
        pointColor="0,0,255" opacity='0.7'
        zIndex="-1" count="99"
        src="/libs/background/canvas-nest.js"></script>
    

    

    
    
    
    <script src="/libs/instantpage/instantpage.js" type="module"></script>
    

</body>

</html>
